package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class TuiGuangController {

    //http://localhost/tuiGuang/id:/a5a84ec1-0224-4bfc-8d78-1239521c9d2d
    @GetMapping("tuiGuang/{id}/{tid}")
    public ModelAndView Link(@PathVariable String id,@PathVariable String tid ){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("pages/setmeal.html?tid="+id);
        return modelAndView;
    }
}
